package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import cn.wolfcode.wolf2w.query.StrategyCatalogQuery;
import cn.wolfcode.wolf2w.vo.CatalogVO;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCatalogService {
    void save(StrategyCatalog strategyCatalog);
    void update(StrategyCatalog strategyCatalog);
    void delete(String id);
    StrategyCatalog get(String id);
    List<StrategyCatalog> listAll();
    Page<StrategyCatalog> query(StrategyCatalogQuery qo);

    /**
     * 添加或更新
     * @param strategy
     */
    void saveOrUpdate(Strategy strategy);

    /**
     * 攻略分类分组下拉框
     * @return
     */
    List<CatalogVO> groupList();

    /**
     * 查询攻略分类
     * @param id
     * @return
     */
    List<StrategyCatalog> queryCatalogByDestId(String id);
}
